import React from 'react'
import ClassComponent from './ClassComponent'
import FucComponent from './FucComponent'
export default function All() {
   const[isShow,setIsShow] =React.useState(true)
   function cha(params) {
    setIsShow(!isShow)
   }
  return (
    <div>
         {isShow && <FucComponent  count='1'></FucComponent>} 
         <button onClick={cha}>chIsShow</button>
    </div>
  )
}
